package com.xbongbong.saas.model;

import com.xbongbong.paas.toolbox.wrap.IModel;
import com.xbongbong.saas.domain.entity.competitor.SimpleDynamicEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author Dell
 * @version v1.0
 * @date 2022/8/11 9:21
 * @since v1.0
 */
public interface SimpleDynamicModel extends IModel<SimpleDynamicEntity>{

    Integer insert(SimpleDynamicEntity simpleDynamic);

    SimpleDynamicEntity getByKey(Long id,String corpid);

    List<SimpleDynamicEntity> findEntities(Map<String,Object> param);

    /**
     * 批量插入简单动态
     * @param simpleDynamicEntityList
     */
    void insertBatch(List<SimpleDynamicEntity> simpleDynamicEntityList);
}
